package com.cencat.domain;

public class Student {
    private int id;
    private String name;
    private String sex;
    private String address;
    private int major_id;


    public Student() {
    }

    public Student(int id, String name, String sex, String address, int major_id) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.address = address;
        this.major_id = major_id;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return major_id
     */
    public int getMajor_id() {
        return major_id;
    }

    /**
     * 设置
     * @param major_id
     */
    public void setMajor_id(int major_id) {
        this.major_id = major_id;
    }

    public String toString() {
        return "Student{id = " + id + ", name = " + name + ", sex = " + sex + ", address = " + address + ", major_id = " + major_id + "}";
    }
}